// @ts-nocheck
import * as http from '@/tools/http'



/*获取全部园区*/
export async function queryCommunity(params: object) {
  return http.get('/api/resource/community',params)
}

/*新建园区*/
export async function createCommunity(params: object) {
  return http.post('/api/resource/community',params)
}

/*修改园区*/
export async function modifyCommunity(params: object) {
  return http.put('/api/resource/community',params)
}

/*查询园区根据街道*/
export async function queryCommunityBySubDistrict(params: object) {
  return http.get('/api/resource/queryCommunityBySubDistrict',params)
}

/*查询园区根据园区名*/
export async function queryCommunityByName(params: object) {
  return http.get('/api/resource/queryCommunityByName',params)
}

/*查询地址根据园区ID*/
export async function getCommunityById(params: object) {
  return http.get('/api/resource/getCommunityById',params)
}

export async function delCommunity(params: object) {
  return http.del('/api/resource/community',params)
}
